var _ = require("lodash");
// _.reject(collection, [predicate=_.identity])
// filter的反向方法，他返回的都是断言为假的元素的集合
var users = [
  { user: "barney", age: 36, active: false },
  { user: "fred", age: 40, active: true },
];
let a = _.reject(users, function (o) {
  return !o.active;
});
console.log(a);
